
<%--
    Document   : reservalogado
    Created on : 10/10/2011, 19:13:31
    Author     : Carlos
--%>

<%@page import="model.Reserva, model.Usuario, model.Voo"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.List, java.util.Iterator, javax.servlet.http.HttpSession;"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="style.css" type="text/css" media="screen">
        <title>RESERVAS</title>
    </head>

    <jsp:include page="topologado.jsp"/>
    <body >
        
        <div id="content">
            <br><br>
             <table style="text-align: left; width: 80%;" border="1" cellpadding="2" cellspacing="2" align="center">
            <tbody>
                <tr>
                    <td style="vertical-align: top; text-align: center;"><b>ID do usuario</b></td>
                    <td style="vertical-align: top; text-align: center;"><b>Numero da Reserva</b></td>
                    <%--<td style="vertical-align: top; text-align: center;"><b>Excluir Reservas</b></td>
                    <%--<td style="vertical-align: top; text-align: center;"><b>Ver dados da Reserva</b></td>--%>
                </tr>
                <%
                    List reservaUser = (List)request.getAttribute("reservaUser");
                    for (Iterator i = reservaUser.iterator(); i.hasNext();){
                    Reserva r= (Reserva)i.next();
                %>
                <tr>
                    <td style="vertical-align: top; text-align: center;"><%= r.getIdUser() %></td>
                    <td style="vertical-align: top; text-align: center;"><%= r.getNumVooReserva() %></td>
                    <%--<td style="vertical-align: top; text-align: center;">
                        <a href="controlador?cmd=excluirReserva&numVooReserva=<%= r.getNumVooReserva()%>&idUser=<%= r.getIdUser() %>">Excluir</a>
                    </td>
                    <%--<td style="vertical-align: top; text-align: center;">
                        <a href="Controlador?cmd=dadosReserva">clique</a>--%>
                    
                </tr>
                <%
                            }
                %>
            </tbody>
        </table>
            <div id="fazer_reserva">
                <br><br><br><br><br><br><br><br><br><br><br><br><br>
                <a href="controlador?cmd=fazerReserva">
                    <img src="imagens/reservaaqui.jpg"/></a>
            </div>
        </div>
    </body>
    <jsp:include page="rodape.jsp"/>

</html>

